package nettyDemo;

public class OrcBack {
	
	public static void main(String[] args) throws Exception {
		String cmd = "exp tzsp/12345678@10.148.6.75:1521/orcl file=Y:\\databack\\tzsp%date:~0,10%.dmp owner=tzsp log=Y:\\databack\\tzsp%date:~0,10%.log";
		Process p = Runtime.getRuntime().exec(cmd);
		if(p.waitFor() == 0){
			System.out.println("备份成功");
		}else{
			System.out.println("备份失败");
		}
	}
}
